package com.wsd.common.utils;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.util.JSONPObject;

public class JsonUtils {

    public static <T> T str2Obj(String jsonStr, Class<T> clazz) throws JsonProcessingException {
        return new ObjectMapper().readValue(jsonStr, clazz);
    }

}
